<?php

declare(strict_types=1);
/**
 * @copyright 深圳市易果网络科技有限公司
 * @version 1.0.0
 * @link https://dayiguo.com
 */

namespace App\Controller\business;

use App\Service\Business\AreaService;

use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\AutoController;

/**
 * 地区控制器
 *
 * @AutoController()
 * @author 李想(928674263@qq.com)
 * @package App\Controller\business
 */
class AreaController extends Controller
{
    /**
     * 注入地址服务
     *
     * @Inject
     * @var AreaService
     */
    private $service;

    /**
     * 获取地区列表
     */
    public function get_area_list()
    {
        $list = $this->service->getAreaList();

        $this->success($list);
    }
}